package com.lz.gmall.web.controller;

import com.lz.gmall.common.result.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/order")
@Slf4j
public class TestController {

    @GetMapping(value = "/saveOrder")
    public Result test(@RequestHeader(value = "userId") String userId) {
        log.info("userId: {}" , userId);
        return Result.ok() ;
    }

}
